package org.amos.upms.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.amos.core.basic.base.BaseEntity;

/**
 * 系统用户
 *
 * @author CodeGenerator
 * @since 2020-12-20
 */
@Data
@TableName("sys_user")
public class User extends BaseEntity {
    /**
     * 租户ID
     */
    private Long tenantId;
    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "性别")
    private Integer sex;

    @Schema(description = "手机号码")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "头像地址")
    private String avatar;

    @Schema(description = "是否为admin账号")
    private Integer isAdmin;

    @Schema(description = "状态：0未激活、1启用、2锁定")
    private Integer status;

}
